package com.atguigu.realtime.gmallpublisher.service

/**
 * Author atguigu
 * Date 2020/12/8 9:41
 */
object DslUtil {
    def getQueryAllJsonString =
        """
          |{
          |  "query": {"match_all": {}}
          |}
          |""".stripMargin
    
    def getQueryHourDauJsonString =
        """
          |{
          |  "aggs": {
          |    "group_by_loghour": {
          |      "terms": {
          |        "field": "logHour",
          |        "size": 24
          |      }
          |    }
          |  },
          |  "size": 1
          |}
          |""".stripMargin
}
